home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
games2
/
twast11.zip
/
TWASTMAC.ZIP
/
TWASSIST.SLT
< prev
Wrap
Text File
|
1993-02-06
|
4KB
|
113 lines
// twassist.slt (Telix script to display the information that can be
// used by TWASSIST)
//
// 10/10/92 - D. Roseen - v1.0
//
// 10/31/92 - D. Roseen - v1.1 to do the following:
// - Move the View Game Status so it's first.
// - Move avoid list so it's last.
//
// 02/05/93 - D. Roseen - v1.2 to do the following:
// - Fixed avoid problem where it wouldn't return
// to main command prompt if avoids were set.
// - Added menu.
// - Added running TWASSIST, CIM port, CIM
// warp/port, and fighter/mines/avoids options.
main()
{
str key[2];
str datadir[] = "d:\twassist"; // YOUR TWASSIST DIRECTORY
while (1)
{
box(20, 5, 52, 18, 3, 0, 7);
pstraxy(" 02/05/93 - D. Roseen - v1.2 ", 22, 5, 10);
pstraxy("( )W2002 Assistant", 22, 7, 7);
pstraxy("T", 23, 7, 11);
pstraxy("( )ll reports", 22, 9, 7);
pstraxy("A", 23, 9, 11);
pstraxy("( )IM warp and port reports", 22, 10, 7);
pstraxy("C", 23, 10, 11);
pstraxy("( )ort report", 22, 11, 7);
pstraxy("P", 23, 11, 11);
pstraxy("( )ighters, mines, and avoids", 22, 12, 7);
pstraxy("F", 23, 12, 11);
pstraxy("E( )it script", 22, 14, 7);
pstraxy("x", 24, 14, 11);
pstraxy("Your selection? ", 22, 16, 7);
getsxy(key, 1, 38, 16, 14);
if (!(strcmpi(key, "T")))
{
newdir(datadir); // STRING VAR. DEFINED AT TOP OF SCRIPT
run("twassist", "", 1);
clear_scr();
cputs("^M^M");
break;
}
else if (!(strcmpi(key, "A")))
{
clear_scr();
cputs ("V"); // VIEW GAME STATUS
// WAIT FOR COMMAND PROMPT OR 20 SECONDS
waitfor("] (?=Help)?", 30);
cputs ("G"); // SHOW DEPLOYED FIGHTERS
cputs ("K"); // SHOW DEPLOYED MINES
cputs ("C"); // ENGAGE CRAI XXV ONBOARD COMPUTER
cputs ("X"); // LIST CURRENT AVOIDS
waitfor("Computer command", 30);
cputs ("╚╔╩╦╠═"); // COMPUTER INTERROGATION MODE (CIM)
cputs ("I"); // INTER SECTOR WARP REPORT
waitfor(":", 200);
cputs ("R"); // PORT REPORT
cputs ("Q"); // QUIT CIM
waitfor("Computer command", 200);
cputs ("Q"); // EXIT COMPUTER
break;
}
else if (!(strcmpi(key, "C")))
{
clear_scr();
cputs ("C"); // ENGAGE CRAI XXV ONBOARD COMPUTER
cputs ("╚╔╩╦╠═"); // COMPUTER INTERROGATION MODE (CIM)
cputs ("I"); // INTER SECTOR WARP REPORT
cputs ("R"); // PORT REPORT
waitfor(":", 200);
cputs ("Q"); // QUIT CIM
waitfor("Computer command", 200);
cputs ("Q"); // EXIT COMPUTER
break;
}
else if (!(strcmpi(key, "P")))
{
clear_scr();
cputs ("C"); // ENGAGE CRAI XXV ONBOARD COMPUTER
cputs ("╚╔╩╦╠═"); // COMPUTER INTERROGATION MODE (CIM)
cputs ("R"); // PORT REPORT
cputs ("Q"); // QUIT CIM
waitfor("Computer command", 200);
cputs ("Q"); // EXIT COMPUTER
break;
}
else if (!(strcmpi(key, "F")))
{
clear_scr();
cputs ("G"); // SHOW DEPLOYED FIGHTERS
cputs ("K"); // SHOW DEPLOYED MINES
cputs ("C"); // ENGAGE CRAI XXV ONBOARD COMPUTER
cputs ("X"); // LIST CURRENT AVOIDS
waitfor("Computer command", 30);
cputs ("Q"); // EXIT COMPUTER
break;
}
else if (!(strcmpi(key, "x")))
{
clear_scr();
cputs("^M^M");
break;
}
}
}